package com.robotserver.orders.mapper;

import com.robotserver.orders.entity.ElmOrders;
import com.robotserver.orders.param.biz.ElmOrderPullParam;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * ElmOrdersMapper继承基类
 */
@Repository
public interface ElmOrdersMapper {
    void add(ElmOrders elmOrders);
    void update(ElmOrders elmOrders);

    ElmOrders getByOrderNo(@Param("parentOrderId") String parentOrderId, @Param("bizOrderId") String bizOrderId);

    List<ElmOrders> getOrderList(ElmOrderPullParam param);

    List<ElmOrders> getOrderListNew(ElmOrderPullParam param);

    List<ElmOrders> getByParentOrderId(@Param("parentOrderId") String parentOrderId);

    ElmOrders getByParAndCliId(@Param("parentOrderId") String parentOrderId, @Param("bizOrderId") String bizOrderId);

    void deleteOrdersExpired(@Param("expiredTime") Integer expiredTime);

    void updateUpdateTime(@Param("childOrderNo") String childOrderNo);
}